package com.aygxy.carproject.pojo.category.entity;

import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
public class Category implements Serializable {
    private long id;
    private long parentId;
    private String name;
    private String iconUrl;
    private Integer sort;
    private Integer enable;
    /**
     * 深度，最顶级类别的深度为1，次级为2，以此类推
     */
    private Integer depth;
    /**
     * 是否为父级（是否包含子级），1=是父级，0=不是父级
     */
    private Integer parent;
    private LocalDateTime gmtCreate;
    private LocalDateTime gmtModified;
}
